import { useReactive } from "ahooks";
import { useModel } from "umi";
import { useEffect } from "react";
import compress from "gql-compress";

const useSelectMiniapp = () => {
    const { graphqlFetch } = useModel("global");

    const state = useReactive({
        selectMiniappLoading: false,
    });

    const selectMiniapp = async (values) => {
        state.selectMiniappLoading = true;

        let variables = {

        };

        // let res = await graphqlFetch({
        //     query,
        //     variables,
        // });

        // state.selectMiniappLoading = false;

        // return res;
    };

    return { selectMiniapp };
};

//更新订单状态
const query = compress(``);

export default useSelectMiniapp;
